﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_ProviderType.aspx.cs"
    Inherits="V5_EShop.Admin.GZProduct.ProviderType.Admin_ProviderType" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <%=V5.Load.LoadAdminHeader(this) %>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%" border="0" cellpadding="2" cellspacing="1" class="tablelist">
            <tr>
                <td class="headertext">
                    供应商管理
                </td>
            </tr>
            <tr>
                <td>
                    <a href="?">管理首页</a> | <a href="?Action=edit">添加供应商</a>
                </td>
            </tr>
        </table>
        <asp:MultiView ID="MultiViewList" runat="server" ActiveViewIndex="0">
            <asp:View ID="View1" runat="server">
                <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" GridLines="None"
                    OnRowCommand="gvList_RowCommand" CssClass="tablelist">
                    <HeaderStyle CssClass="headertext" />
                    <Columns>
                        <asp:TemplateField HeaderText="选择" HeaderStyle-Width="30px">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkitem" runat="server" />
                                <asp:HiddenField ID="hfID" runat="server" Value='<%#Eval("ID") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="名称">
                            <ItemTemplate>
                                <%#Eval("ProviderTypeName")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Eval("ID") %>'
                                    CommandName="go">修改</asp:LinkButton>
                                <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%#Eval("ID") %>'
                                    CommandName="del">删除</asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle Width="150px" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <webdiyer:AspNetPager ID="Pager" runat="server" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                    FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" NextPageText="下一页"
                    OnPageChanged="Pager_PageChanged" PageIndexBoxType="DropDownList" PageSize="20"
                    PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                    TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" AlwaysShow="True" Width="100%">
                </webdiyer:AspNetPager>
            </asp:View>
            <asp:View ID="View2" runat="server">
                <table border="0" cellpadding="0" cellspacing="0" class="tablelist">
                    <tr>
                        <td colspan="2" class="headertext">
                            <asp:Label ID="lblTitle" runat="server" Text="添加供应商"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            供应商名称:
                        </td>
                        <td>
                            <asp:TextBox ID="txtProviderTypeName" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" align="center">
                            <asp:HiddenField ID="hfID" runat="server" Value="0" />
                            <asp:Button ID="btnSave" runat="server" Text="添加保存" CssClass="ds-btn ds-btn-ok" OnClick="btnSave_Click" />
                        </td>
                    </tr>
                </table>
            </asp:View>
        </asp:MultiView>
    </div>
    </form>
</body>
</html>
